<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Member/solist')}">会员列表</a></li>
			<li class="active"><a href="{:url('Member/add')}">会员添加</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('member/addpost')}">
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="true_name" required style="width: 200px;">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员手机号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control membermobile" id="input-user_email" name="mobile" required style="width: 200px;"><a class="yanzheng">验证手机号是否存在</a>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="address" required style="width: 250px;">
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员登录密码</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="pass_word" placeholder="******" required style="width: 200px;">
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员提现密码</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="pay_word" placeholder="******" required style="width: 200px;">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员状态</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="status" class="form-control" style="width: 80px;">
                                              <option value="0">冻结</option>
                                              <option value="1">正常</option>
                                         </select>
                                    </label>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员来源</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="source_guid" class="form-control" style="width: 110px;">
                                              <option value="0">--请选择--</option>
                                              <volist name="old" id="old">
                                              <option value="{$old.sou_guid}">{$old.source_name}</option>
                                              </volist>
                                         </select>
                                    </label>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员性别</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="sex" class="form-control" style="width: 80px;">
                                              <option value="1">男</option>
                                              <option value="2">女</option>
                                              <option value="3">未知</option>
                                         </select>
                                    </label>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>会员生日</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" id="input-user_email" name="birthday" required style="width: 140px;" autocomplete="off">
				</div>
			</div>
                        <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea type="text"  class="form-control" id="input-remark" name="comment" required></textarea>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">个人爱好</label>
				<div class="col-md-6 col-sm-10">
					<textarea type="text"  class="form-control" id="input-remark" name="hobby" required></textarea>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">职业</label>
				<div class="col-md-6 col-sm-10">
					<textarea type="text"  class="form-control" id="input-remark" name="job" required></textarea>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">工作单位</label>
				<div class="col-md-6 col-sm-10">
					<textarea type="text"  class="form-control" id="input-remark" name="units" required></textarea>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-remark" class="col-sm-2 control-label">最想改善</label>
				<div class="col-md-6 col-sm-10">
					<textarea type="text"  class="form-control" id="input-remark" name="improve" required></textarea>
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>身高</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_email" name="height" required style="width: 200px;">
				</div>
			</div>
                        <div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>婚姻</label>
				<div class="col-md-6 col-sm-10">
                                    <label class="checkbox-inline">
                                         <select name="marriage" class="form-control" style="width: 80px;">
                                              <option value="1">已婚</option>
                                              <option value="2">未婚</option>
                                              <option value="3">未知</option>
                                         </select>
                                    </label>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
<script type="text/javascript">
    $(".yanzheng").click(function(){
       var mobile = $.trim(($(".membermobile").val()));
       //判断手机号是否存在       
       $.post("{:url('member/esistmber')}",{mobile:mobile},function(date){
           console.log(date);
           alert(date.msg);   
       });
    });
</script>